package com.example.demo.module.repository.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.demo.common.service.BaseService;
import com.example.demo.entity.pojo.repository.PurchaseRepositoryPoJo;
import com.example.demo.entity.request.repository.PurchaseRepositoryQuery;
import com.example.demo.entity.request.repository.PurchaseRepositoryRequest;

/**
 * PurchaseRepositoryService
 *
 * @author Mei Ruoxiao
 * @date ${date}
 */
public interface PurchaseRepositoryService extends BaseService<PurchaseRepositoryPoJo> {
    /**
     * Get purchase order warehousing list
     *
     * @param query     query request object
     * @param companyId companyId
     * @return page
     */
    Page<PurchaseRepositoryPoJo> page(final PurchaseRepositoryQuery query, final long companyId);

    /**
     * warehouse
     *
     * @param request   request
     * @param companyId companyId
     * @return id
     */
    boolean warehouse(final PurchaseRepositoryRequest request, final long companyId);

}

